﻿using DapperExtensions.Mapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nova_MOD
{
    public class TLCDTask
    {
        public int SQID { get; set; }

        public long TaskID { get; set; }

        public string TaskMode { get; set; }

        public string Tray_ID { get; set; }

        public long Pos_ID { get; set; }

        /// <summary>
        /// 入库单
        /// </summary>
        public string StockNo { get; set; }

        public string Mat_Code { get; set; }

        public string Mat_Name { get; set; }

        public string SerialNum { get; set; }

        public decimal Mat_Num { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string S01 { get; set; }

        /// <summary>
        /// 图号
        /// </summary>
        public string S05 { get; set; }

        public DateTime UpdateTime { get; set; }
    }

    public class TLCDTaskMap : ClassMapper<TLCDTask>
    {
        public TLCDTaskMap()
        {
            const string tbName = "TLCDTask";
            base.Table(tbName);
            Map(f => f.SQID).Key(KeyType.Assigned);
            AutoMap();
        }
    }
}
